How to execute a "name.desktop" file? [duplicate]

Posted by Pubudug on Ask Ubuntu See other posts from Ask Ubuntu or by Pubudug
Published on 2014-06-09T06:39:01Z Indexed on 2014/06/10 9:41 UTC
Read the original article Hit count: 133

Filed under:
|

This question already has an answer here:

#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Link
Name=ShareFolder
Icon=/usr/share/icons/DPL/NetworkShare.png
Name[en_US]=ShareFolder
URL=smb://servername/sharefolder

This is my .desktop file which has a URL. How do I execute this desktop shortcut in the terminal? If i double click it works perfectly, but I need to execute this in terminal.

I tried Running a .desktop file in the terminal. That didn't work for me either but it does if its an "application" shortcut. I'm trying here to execute "link" .desktop file, where you define in the type section (Type=Link) and (URL=smb://servername/sharefolder)

© Ask Ubuntu or respective owner

Related posts about command-line

Related posts about sharing